import request from '@/utils/request'
import store from '@/store'

export function queryMoneyOff (params) {
  return request({
    url: '/moneyOff',
    method: 'get',
    params: Object.assign(params, { 'createUserId': store.getters.userInfo.id })
  })
}

export function addMoneyOff (params) {
  return request({
    url: '/moneyOff',
    method: 'post',
    data: Object.assign(params, { 'createUserId': store.getters.userInfo.id })
  })
}

export function updateMoneyOff (params) {
  return request({
    url: '/moneyOff',
    method: 'put',
    data: params
  })
}
